/* SVN FILE: $Id: $ */
/**
 * Short description for file.
 *
 * This is a sample for jamal controller conventions
 *
 * jQuery is required
 *
 * JamalBuilder :  Javascript MVC Assembler
 * Copyright (c)    2007, Georg Leciejewski 
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @copyright        Copyright (c) 2006, Timo Derstappen
 * @link            
 * @package          JamalBuilder
 * @subpackage       jamal.controllers.builds
 * @since            JamalBuilder v 0.1
 * @version          $Revision: $
 * @modifiedby       $LastChangedBy: $
 * @lastmodified     $Date: $
 * @license          http://www.opensource.org/licenses/mit-license.php The MIT License
 */

/**
 * TemplatesController
 * 
 * Handles MVC Templates so you don´t have to write a lot when creating a new mvc part
 *
 */
$j.c({Templates: {
    name: 'TemplatesController',
    
    /**
     * Templates index
     */
    index: function() {
       jamal.log('Start templatesController index');

		//init Accordeon
        jQuery('#content').Accordion({
			header: 'h2.accordeon_title',
			showSpeed: 650,
			hideSpeed: 650,
			active: false,
			alwaysOpen: false,
			
		});
		//init Folder tree view
		$('#helpFileList').Treeview();
    },
		
	/**
	 * build some bloody empty files ??? 
	 * yead dude template driven Jamal Building ... rock�n roll
	 */
	generateAppMvcTemplates: function ()
	{
		
		
	},
	
	/**
	 * return the content of the template model file
	 * 
	 * @param String model_name
	 * @return String - the text to be written into the models file
	 */
	getModelTemplate: function (model_name)
	{
		var text = "";
		return text;
	},
	
	/**
	 * return the content of the template Controller file 
	 * @param String model_name
	 * @return String - the text to be written into the models file
	 */
	 getControllerTemplate: function (controller_name)
	{
		var text = "";
		return text;
	},
	/**
	 * return the content of the View template file 
	 * @param String model_name
	 * @return String - the text to be written into the models file
	 */
	getViewTemplate : function (view_name)
	{
		var text = "";
		return text;
	}
}
});
